package com.daniel.design.pattern.decorator;

/**
 * @ClassName Client
 * @Description 装饰着模式测试类
 * @Author Daniel
 * @Version V1.0.0
 */
public class Client {
    public static void main(String[] args) {
        FastFood fastFood = new FriedNoodles();
        System.out.println(fastFood.getDesc() + " " + fastFood.cost() + "元");

        FastFood friedRice = new FriedRice();
        friedRice = new Egg(friedRice);
        System.out.println(friedRice.getDesc() + " " + friedRice.cost() + "元");

    }
}
